﻿using System;

namespace Mr.HttpBodyWrapper
{
    public abstract class HttpBodyWrapperBase : IHttpBodyWrapper
    {
        public IParameter[] Parameters { get; private set; }

        public HttpBodyWrapperBase(params IParameter[] queryParameters)
        {
            this.Parameters = queryParameters;
            this.ParamsCount = this.Parameters == null ? 0 : this.Parameters.Length;
        }

        public abstract string ContentType { get; }

        public int ParamsCount { get; private set; }

        public abstract byte[] ToBodyData();
    }
}
